<template>
    <div class="camera-content">
        <div class="title">
            <h3>摄像头概况总览 <span>Camera overview</span></h3>
        </div>
        <div class="camera-title">
            <div class="sub-title-content">
                <div class="sub-title-content-left">
                    <font-awesome-icon class="icon-camera icon" :icon="['fas', 'camera']" />
                    <div class="camera-sum">
                        <p>摄像头总数</p>
                        <span>55</span>
                    </div>
                </div>
                <div class="sub-title-content-right">
                    <font-awesome-icon class="icon-rss icon" :icon="['fas', 'rss']" />
                    <div class="camera-region">
                        <p>摄像头覆盖区域</p>
                        <span>75%</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="camera-info">
            <ul>
                <li>
                    <div>
                        <font-awesome-icon class="icon-address-card icon" :icon="['fas', 'address-card']" />
                        <p>人脸识别摄像头</p>
                    </div>
                    <span>15</span>
                </li>
                <li>
                    <div>
                        <font-awesome-icon class="icon-video icon" :icon="['fas', 'video']" />
                        <p>可控制摄像头</p>
                    </div>
                    <span>50</span>
                </li>
                <li>
                    <div>
                        <font-awesome-icon class="icon-wrench icon" :icon="['fas', 'wrench']" />
                        <p>故障摄像头</p>
                    </div>
                    <span>0</span>
                </li>
            </ul>
        </div>
        <div class="camera-list">
            <h3>摄像头列表</h3>
            <div class="list-content">
                <ul>
                    <li>
                        <div>
                            <p class="camera-text">监控01:南门</p>
                            <span class="camera-time">08:11:22</span>
                        </div>
                        <div>
                            <span class="handle">处理中</span>
                        </div>
                    </li>
                    <li>
                        <div>
                            <p class="camera-text">监控01:南门</p>
                            <span class="camera-time">08:11:22</span>
                        </div>
                        <div>
                            <span class="standby">待派遣</span>
                        </div>
                    </li>
                    <li>
                        <div>
                            <p class="camera-text">监控01:南门</p>
                            <span class="camera-time">08:11:22</span>
                        </div>
                        <div>
                            <span class="cancel">已消警</span>
                        </div>
                    </li>
                    <li>
                        <div>
                            <p class="camera-text">监控01:南门</p>
                            <span class="camera-time">08:11:22</span>
                        </div>
                        <div>
                            <span class="cancel">已消警</span>
                        </div>
                    </li>
                    <li>
                        <div>
                            <p class="camera-text">监控01:南门</p>
                            <span class="camera-time">08:11:22</span>
                        </div>
                        <div>
                            <span class="cancel">已消警</span>
                        </div>
                    </li>
                    <li>
                        <div>
                            <p class="camera-text">监控01:南门</p>
                            <span class="camera-time">08:11:22</span>
                        </div>
                        <div>
                            <span class="cancel">已消警</span>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {}
    },
}
</script>

<style lang="less" scoped>
@import '../../../assets/less/school.less';
.camera-content {
    width: 350px;
    padding-left: 15px;
    .camera-title {
        width: 100%;
        margin-top: 10px;
        color: #fff;
        border: 1px solid #fff;
        background-image: linear-gradient(to right, #68519f, #83c1e1);
        .sub-title-content {
            display: flex;
            justify-content: space-around;
            align-items: center;
            div {
                display: flex;
                justify-content: center;
                align-items: center;
                .icon {
                    font-size: 20px;
                    margin-right: 15px;
                }
                .camera-sum,
                .camera-region {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    p {
                        font-size: 12px;
                    }
                    span {
                        font-size: 16px;
                        color: rgb(0, 255, 255);
                        font-weight: 600;
                    }
                }
            }
        }
    }
    .camera-info {
        ul {
            li {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-top: 10px;
                div {
                    display: flex;
                    align-items: center;
                    color: #fff;
                    padding: 5px;
                    background: rgba(154, 153, 180, 0.6);
                    flex: 1;
                    margin-right: 10px;
                    .icon {
                        margin: 0 10px;
                        font-size: 18px;
                    }
                    p {
                        font-size: 18px;
                    }
                }
                span {
                    width: 100px;
                    text-align: center;
                    color: #fff;
                    font-size: 16px;
                    font-weight: 600;
                    padding: 2.5px 0;
                    box-sizing: border-box;
                    border: 1px solid #fff;
                    background-image: linear-gradient(to right, #68519f, #83c1e1);
                }
            }
        }
    }
    .camera-list {
        h3 {
            width: 60%;
            color: #fff;
            font-size: 16px;
            padding: 2px 0;
            padding-left: 15px;
            margin-top: 20px;
            display: flex;
            align-items: center;
            border: 1px solid #fff;
            background-image: @small-bg;
        }
        .list-content {
            position: relative;
            &::before {
                content: '';
                position: absolute;
                top: 0;
                left: 4px;
                width: 10px;
                height: 100%;
                border-radius: 5px;
                background-image: linear-gradient(to right, #68519f, #85c8e5);
            }
            ul {
                height: 250px;
                margin: 20px 0;
                padding-left: 20px;
                overflow: hidden;
                overflow-y: scroll;
                scrollbar-width: none;
                li {
                    display: flex;
                    justify-content: space-between;
                    align-items: flex-start;
                    position: relative;
                    margin-bottom: 10px;
                    &::before {
                        content: '';
                        width: 8px;
                        height: 8px;
                        background: #85c8e5;
                        border-radius: 50%;
                        position: absolute;
                        top: 50%;
                        transform: translateY(-50%);
                        left: -15px;
                    }
                    &:hover {
                        background: rgba(154, 153, 180, 0.6);
                    }
                    div {
                        color: #fff;
                        .camera-text {
                            font-size: 14px;
                        }
                        .camera-time {
                            font-size: 12px;
                        }
                        span {
                            font-size: 14px;
                            height: 20px;
                            line-height: 20px;
                            padding: 2px 5px;
                            color: #fff;
                        }
                    }
                    .handle {
                        background: rgb(240, 201, 144);
                    }
                    .standby {
                        background: rgb(222, 118, 111);
                    }
                    .cancel {
                        background: rgb(151, 201, 234);
                    }
                    //handle:240,201,144  standby:222,118,111  cancel:151,201,234
                }
            }
            ul::-webkit-scrollbar {
                display: none;
            }
        }
    }
}
</style>